package com.keeson.android_cli.interfaces.contract;


import com.keeson.android_cli.base.BasePresenter;
import com.keeson.android_cli.base.BaseView;
import com.keeson.android_cli.bean.PressureInfo;
import com.keeson.android_cli.bean.request.ModifyBedMattressRequest;
import com.keeson.android_cli.entity.BedBindInfo;
import com.keeson.android_cli.entity.UserInfo;
import java.util.ArrayList;
import java.util.Map;

/**
 * Created by jiaqiZHou
 * on 2020/12/4
 */
public interface MainContract {

    interface View extends BaseView {
        void refreshTokenSuccess(UserInfo data);
        void getUserBindInfoSuccess(BedBindInfo data);
        void deleteUserBindInfoSuccess(String data);
        void modifyUserBindInfosSuccess(String data);
        void modifyUserMemoryNameSuccess(String data);
        void getPressureInfoNameSuccess(ArrayList<PressureInfo> data);
    }

    interface Presenter extends BasePresenter {
        void refreshToken(int uid);
        void getUserBindInfo(int uid);
        void deleteUserBindInfo(Map<String, Object> map);
        void modifyUserBindInfos(ModifyBedMattressRequest postBody);
        void modifyUserMemoryName(Map<String, Object> map);
        void getPressureInfo(String hardware_version);


    }
}
